package com.Iconcat.system.mapper;

import com.Iconcat.system.entity.CatMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2023-11-19
 */
@Mapper
public interface CatMenuMapper extends BaseMapper<CatMenu> {
    List<CatMenu> selectPermissionsByAdminId(@Param("adminId") Integer adminId);

    @Select("SELECT * FROM cat_user WHERE phone_number = #{phoneNumber}")
    Boolean findByPhoneNumber(@Param("phoneNumber") String phoneNumber);
}
